wayland: Protocol change: ping event on shell_surface
authorRob Bradford <rob@linux.intel.com>
Wed, 11 Jul 2012 13:15:04 +0000 (14:15 +0100)
committerRob Bradford <rob@linux.intel.com>
Thu, 12 Jul 2012 14:58:37 +0000 (15:58 +0100)
gdk/wayland/gdkwindow-wayland.c

index ff3b92b550697ca1ba86f9641bc7b949b48f4405..a0e2d7ec9fdd50de3097db5ebeccf76852d99e6f 100644 (file)
@@ -685,7 +685,16 @@ shell_surface_popup_done (void                    *data,
   gdk_window_hide (window);
 }
 
+static void
+shell_surface_ping (void                    *data,
+                    struct wl_shell_surface *shell_surface,
+                    uint32_t                 serial)
+{
+  wl_shell_surface_pong(shell_surface, serial);
+}
+
 static const struct wl_shell_surface_listener shell_surface_listener = {
+  shell_surface_ping,
   shell_surface_handle_configure,
   shell_surface_popup_done
 };